package com.example.test_app.view;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

import androidx.annotation.Nullable;

public class View2 extends View {
    public View2(Context context) {
        super(context);
    }

    public View2(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public View2(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {
        Log.d("view2", "dispatchTouchEvent: ");
       
         super.dispatchTouchEvent(event);
        return true;
    }

    @Override
    public float getZ() {
        return 3f;

    }
}
